package com.epoint.mobileoa.personalized.epointcompany.bizlogic;

import java.util.HashMap;

import android.os.Message;

import com.epoint.mobileoa.R;
import com.epoint.mobileoa.bizlogic.SuperView;
import com.epoint.mobileoa.bizlogic.Task;
import com.epoint.mobileoa.tools.WebServiceUtilDAL;

/**
 * @author liyc
 * @time 2012-4-25 上午8:47:02
 * @annotation 保存出差报销明细任务
 */
public class AddChuchaibaoxiaomingxiTask extends Task {

	public AddChuchaibaoxiaomingxiTask(SuperView con,
			HashMap<String, Object> param) {
		super(con, param);
	}

	@Override
	public void exectue(Message mess) throws Exception {
		/*param.put("RZRowGuid", rzguid);
		param.put("rzdate", rzdate);
		param.put("UserGuid",fyryname);
		param.put("UserName", fyryguid);
		param.put("BXMoney", etFyje.getText().toString());
		param.put("FaShengDi", etFsd.getTag().toString());
		param.put("BXType", etFylb.getTag().toString());
		param.put("BXTime", rzdate);
		param.put("Remarks", etBz.getText().toString());
		param.put("ZhaoDaiDX", "");
		param.put("XiangMuMC", "");
		param.put("ProjectGuid", "");
		param.put("KMnum", "");
		param.put("KeHuDQ", "");
		param.put("OuName", fyouname);
		param.put("OuGuid", fyouguid);*/
		
		String url = getCon().getString(R.string.epointcompany_rizhi_url);
		String namespace = getCon().getString(R.string.epointcompany_rizhi_namespace);
		String method = "BtnAddGongZuoRZ_BaoXiao";
		
		WebServiceUtilDAL webservice = new WebServiceUtilDAL(url,
				method, namespace);
		
		webservice.addProperty("RZRowGuid", getParam().get("RZRowGuid").toString());
		webservice.addProperty("RZDate", getParam().get("RZDate").toString());
		webservice.addProperty("UserGuid", getParam().get("UserGuid").toString());
		webservice.addProperty("UserName", getParam().get("UserName").toString());
		webservice.addProperty("BXMoney", getParam().get("BXMoney"));
		webservice.addProperty("FaShengDi", getParam().get("FaShengDi").toString());
		webservice.addProperty("BXType", getParam().get("BXType").toString());
		webservice.addProperty("BXTime", getParam().get("BXTime").toString());
		webservice.addProperty("Remarks", getParam().get("Remarks").toString());
		webservice.addProperty("ZhaoDaiDX", getParam().get("ZhaoDaiDX").toString());
		webservice.addProperty("XiangMuMC", getParam().get("XiangMuMC").toString());
		webservice.addProperty("ProjectGuid", getParam().get("ProjectGuid").toString());
		webservice.addProperty("KMnum", 0);
		webservice.addProperty("KeHuDQ", getParam().get("KeHuDQ").toString());
		webservice.addProperty("OuName", getParam().get("OuName").toString());
		webservice.addProperty("OuGuid", getParam().get("OuGuid").toString());
		
		String bs = webservice.start();
		setMessageToRefreshUI(mess, getCon(), bs);
	}

}
